package com.chenfan.magic.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * ISV 非敏感信息封装
 *
 * @author 周夕
 * @date 2020-02-12 20:58
 */
@Data
@ApiModel(description = "ISV 非敏感信息封装")
public class IsvVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "应用key")
    private String appKey;

    @ApiModelProperty(value = "应用名称")
    private String appName;

    @ApiModelProperty(value = "应用描述")
    private String appDesc;

    @ApiModelProperty(value = "应用官网")
    private String appHomepage;

    @ApiModelProperty(value = "应用LOGO")
    private String appLogo;

    @ApiModelProperty(value = "应用通行证配置信息")
    private String appConfig;

    @ApiModelProperty(value = "应用特性优势")
    private String appFeature;

    @ApiModelProperty(value = "应用授权条款协议")
    private String appProtocol;

    @ApiModelProperty(value = "应用三方登录配置")
    private String appOauth2;

    @ApiModelProperty(value = "应用通行证回调地址")
    private String appRedirect;

    public IsvVo() {
    }

    public IsvVo(Isv isv) {
        this.appKey = isv.getAppKey();
        this.appName = isv.getAppName();
        this.appDesc = isv.getAppDesc();
        this.appHomepage = isv.getAppHomepage();
        this.appLogo = isv.getAppLogo();
        this.appConfig = isv.getAppConfig();
        this.appFeature = isv.getAppFeature();
        this.appProtocol = isv.getAppProtocol();
        this.appOauth2 = isv.getAppOauth2();
        this.appRedirect = isv.getAppRedirect();
    }

}
